package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IEmployeeService {
    void delete(Long id);
    void save(Employee employee, Long[] ids);
    Employee get(Long id);
    List<Employee> listAll();
    void update(Employee employee, Long[] ids);

    void saveOrUpdate(Employee employee, Long[] ids);

    Employee selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
    int queryForCount(QueryObject qo);
    PageInfo queryForList(QueryObject qo);
    List<String> selectExpByEmpId(Long id);

	void batchDelete(Long[] ids);
}
